# -*- coding: utf-8 -*-
import os
import platform
class KernelInformation():
    def __init__(self):
        temp=os.uname()
        self.isonline
        self.kversion=temp[2]
        self.architect=temp[4]
        self.kversion=self.kversion[:self.kversion.index('-')]
    @property
    def isonline(self):
        import socket
        try:
             socket.gethostbyname('www.google.com')
             return True
        except socket.gaierror as err:
                print err
                return False
    def IsPropietaryDriver(self):
        pass
ki=KernelInformation()
print ki.architect
print ki.kversion

    
        
    
